﻿<Window x:Class="SsTool.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        WindowState="Maximized" FontFamily="Microsoft YaHei" FontSize="14">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Menu Grid.Row="0">
            <!--<MenuItem Header="Publish">
                <MenuItem Header="To Database" Click="MenuItemToDatabase_Click"/>
            </MenuItem>-->
            <MenuItem Header="基础信息">
                <MenuItem Header="应用程序管理" Click="MenuItemClick" Tag="SsTool.Core.ApplicationListPage">
                </MenuItem>
                <MenuItem Header="用户管理" Click="MenuItemClick" Tag="UserListPage">
                    <MenuItem.Icon>
                        <Image Source="/Resources/users.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="角色管理" Click="MenuItemClick" Tag="RoleListPage"/>
                <MenuItem Header="组织机构管理" Click="MenuItemClick" Tag="SsTool.Core.OrgPage"/>
                <MenuItem Header="模块管理" Click="MenuItemClick" Tag="SsTool.Base.ModuleListPage"/>
                <MenuItem Header="主题管理" Click="MenuItemClick" Tag="SsTool.Core.ThemeListPage"/>
                <MenuItem Header="导航管理" Click="MenuItemClick" Tag="SsTool.Base.NavigationListPage"/>
            </MenuItem>
            <MenuItem Header="元数据管理">
                <MenuItem Header="字典数据管理" Click="MenuItemClick" Tag="SsTool.Metadata.DictionaryPage"/>
                <MenuItem Header="实体管理" Click="MenuItemClick" Tag="SsTool.Metadata.EntityMetadataPage"/>
                <MenuItem Header="字段类型管理" Click="MenuItemClick" Tag="SsTool.Metadata.PropertyTypeMetadataPage"/>
            </MenuItem>
            <MenuItem Header="流程">
                <MenuItem Header="工作流管理" Click="MenuItemWorkflow_Click"/>
            </MenuItem>
            <MenuItem Header="更新">
                <MenuItem Header="打包" Click="MenuItemClick" Tag="SsTool.Install.PackPage"/>
                <MenuItem Header="从Excel导入">
                    <MenuItem Header="导入组织机构" Click="MenuItemClick" Tag="SsTool.Install.ImportOrgFromExcel"/>
                    <MenuItem Header="导入用户" Click="MenuItemClick" Tag="SsTool.Install.ImportUserFromExcel"/>
                    <MenuItem Header="导入用户部门关联" Click="MenuItemClick" Tag="SsTool.Install.ImportOrgMemberFromExcel"/>
                </MenuItem>
                <MenuItem Header="更新数据库" Click="MenuItemInstall_Click"/>
            </MenuItem>
        </Menu>
        <Border BorderBrush="#FF0058FF" BorderThickness="1" Grid.Row="1" >
            <TextBlock Name="_ctlLabelTitle" Text="标题" HorizontalAlignment="Stretch" Padding="5,3,0,3" FontSize="14">
                <TextBlock.Background><LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFEFF5FF" Offset="0" />
                    <GradientStop Color="#FF89BAFF" Offset="0.992" />
                </LinearGradientBrush>
                </TextBlock.Background>
            </TextBlock>
        </Border>
        <Frame Grid.Row="2" Name="_ctlFrame" NavigationUIVisibility="Hidden"></Frame>
    </Grid>
</Window>
